package com.chenju.javastatic.mybatis.mapper;

import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface BaseMapper<T> {
    void batchInsert(List<T> t);

    void batchUpdate(List<T> t);

    List<T> selectAll();

    T selectById(Long id);

    void insert(T t);

    void deleteAll();

    void deleteById(Long id);
}
